//CLICKING THE NAVIGATION 'MENU' BUTTON
$("#button-menu").click(function(e) {
	sideBarToggle();
	navBackgroundToggle();
	//console.log("clicked");
	return false;
});

//CLICKING THE NAV DRAWER BACKGROUND
$("#navdrawer-bg").click(function() {
	sideBarToggle();
	navBackgroundToggle();
	//console.log("bg-clicked");
});

//TOGGLE VISIBILITY OF SIDE NAV
function sideBarToggle() {
	$("#left-panel").toggleClass("open");
};
//TOGGLE VISIBILITY OF DRAWER BACKGROUND 
function navBackgroundToggle() {
	$("#navdrawer-bg").toggleClass("open");
};

